/*
 * @Description:
 * @version:
 * @Author: sunqian_sr
 * @Date: 2023-02-01 18:17:09
 * @LastEditors: Andy
 * @LastEditTime: 2023-02-01 18:46:02
 */
import { Http } from '@/common/api'
// 列表
export const listUrl = '/upms/client/page'

/**
 * 新增应用
 * @param params
 * @return {*|Promise}
 */
export const apiPostAddClient = async (params) => Http.post('/upms/client/add', params)
/**
 * 编辑应用
 * @param params
 * @return {*|Promise}
 */
export const apiPutEditClient = async (params) => Http.put('/upms/client/update', params)
/**
 * 根据ID应用
 * @param id
 * @return {*|Promise}
 */
export const apiGetClient = async (id) => Http.get(`/upms/client/findByClientId?clientId=${id}`)
/**
 * 删除应用
 * @param params
 * @return {*|Promise}
 */
export const apiPutDeleteClient = async (params) => Http.put('/upms/client/delete', params)

/**
 * 重置应用密码
 * @param params
 * @return {*|Promise}
 */
export const apiPutResetClientPwd = async (params) => Http.put('/upms/client/updatePwd', params)

/**
 * 批量启用
 * @param params
 * @return {*|Promise}
 */
export const apiPutEnableClient = async (params) => Http.put('/upms/client/batch/enable', params)

/**
 * 批量禁用
 * @param params
 * @return {*|Promise}
 */
export const apiPutDisableClient = async (params) => Http.put('/upms/client/batch/disable', params)
